package com.zhiche.lisa.bms.dao.mapper.statistics;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.zhiche.lisa.bms.dao.model.statistics.StaticWaybill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 运单统计表 Mapper 接口
 * </p>
 *
 * @author liangpeng
 * @since 2019-01-18
 */
public interface StaticWaybillMapper extends BaseMapper<StaticWaybill> {
    List<StaticWaybill> getStaticWayBillByOrder(@Param("ew") Wrapper<StaticWaybill> ew);

    List<StaticWaybill> getStaticOTMWayBillByOrder(@Param("ew") Wrapper<StaticWaybill> ew);

    /**
     * 得到没有标准价的运单
     * @return
     */
    List<StaticWaybill> getNoStandPriceWaybill(@Param("ew") Wrapper<StaticWaybill> ew);

    /**
     * 获取不在统计表中的数据
     *
     * @return
     */
    List<StaticWaybill> getNoExistWaybillComposite();
}
